package com.heima.controller;


import com.heima.pojo.dto.BusinessDto;
import com.heima.service.IBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商圈表 前端控制器
 * </p>
 *
 * @author 存折
 * @since 2024-10-20
 */
@RestController
@RequestMapping("/api/vm-service/businessType")
public class BusinessController {

    @Autowired
    private IBusinessService iBusinessService;
@GetMapping
    public  List<BusinessDto> select(){
   List<BusinessDto> list = iBusinessService.select();
    return list;
}
}
